package com.example.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.view.R;
import com.example.view.bean.MainMenuBean;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class MainAdapter extends BaseQuickAdapter<MainMenuBean, BaseViewHolder> {

    public MainAdapter( @Nullable List<MainMenuBean> data) {
        super(R.layout.item_text, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MainMenuBean data) {
        baseViewHolder.setText(R.id.tv_name, data.getName());
    }
}
